// store读取不到这个文件

import { reqBannerList } from "@/api"
const state = {
    bannerList :[]
}

const actions = {
    async bannerList({commit}){
        const result = reqBannerList()
        if(result.code===200){
            commit('BANNERLIST',result.data)
        }
    }
}

const mutations = {
    BANNERLIST(state,value){
        state.bannerList = value
    }
}

const getters = {}

export default {state,actions,mutations,getters}
